Writer
IO streams are either character-oriented or general purpose, byte-oriented. This chapter does character-oriented output to a disk file and uses a Writer stream.
If you were doing this on your own, you would decide that some Writer
class is probably what you want.
Then you would look under "Writer" in your Java documentation for
a more specific stream that does what you need.
Do that now, if you can.
Your documentation might be here: